Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@rohitg00
rohitg00 / llm-wiki.md
Last active May 27, 2026 17:28 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory 10K Stars ⭐️, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@tdcosta100
tdcosta100 / WSL2GUIWSLg-XWayland-en.md
Last active May 27, 2026 17:27
A tutorial to use GUI in WSL2/WSLg replacing original Xorg by Xwayland, allowing WSL to work like native Linux, including login screen

Full desktop shell in WSL2 using WSLg (XWayland)

Note

If you want to use Wayland in WSLg in a simpler setup, you can try the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2. No additional software outside WSL (like VcXsrv or GWSL) is required. You will find this tutorial very similar to the one that replaces Xorg with Xvnc. Indeed, it's pretty much the same tutorial, with some few changes.

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc), and after that, replace the default Xorg by a script that calls Xwayland instead.

For this setup, I will use Ubuntu 24.04, and install GNOME Desktop. Unfortunately older versions of Ubuntu lack some fundamental things, so we cannot reproduce it in older versions (at least not fully). Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample screenshot

@lohanidamodar
lohanidamodar / V2-Style-advance.css
Last active May 27, 2026 17:26 — forked from mewforest/YouTube Chat CSS.css
Styles for YouTube streaming live-chat (tested in OBS)
@import url("https://fonts.googleapis.com/css?family=Candal");
@import url("https://fonts.googleapis.com/css?family=Changa One");
@import url("https://fonts.googleapis.com/css?family=Imprima");
/* Background colors*/
body {
overflow: hidden;
background-color: rgba(0,0,0,0);
}
/* Transparent background. */
@BoberSdoh
BoberSdoh / podderzhka-vpn-servisov-pochemu-ne-otvechayut-2026.md
Created May 27, 2026 17:23
Написал в поддержку VPN — и тишина. Почему это норма и как найти исключение

Написал в поддержку VPN — и тишина. Почему это норма и как найти исключение

Дисклеймер. Это личный опыт и обзор для ознакомления. Не реклама, не оферта, ни к чему не призываю. Ответственности за ваши действия не несу. Соблюдайте законы своей страны.


Если коротко:

  • Большинство VPN-сервисов отвечают на вопросы через 24–72 часа — или не отвечают вообще.
  • Чат-боты с заготовленными ответами решают от силы 10% реальных проблем.
@Palatis
Palatis / 1. etc_containers_container.conf
Last active May 27, 2026 17:21
OpenWrt podman use br-lan
[engine]
hooks_dir = [
"/etc/containers/oci/hooks.d/",
]

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@Brajesh2022
Brajesh2022 / Running Antigravity CLI on Termux.md
Last active May 27, 2026 17:21
Antigravity CLI on Termux: Auto-Installer and Manual Patching Guide

🚀 Recommended Installation (Auto-Installer)

Antigravity CLI Demo The easiest and community-recommended way to install Antigravity CLI on Termux is using the standalone auto-installer.

curl -fsSL https://raw.githubusercontent.com/wallentx/antigravity-cli-termux/dev/install.sh | bash

How it works: This script instantly installs the latest release directly from the wallentx/antigravity-cli-termux repository. A huge thanks to the original repository owner, @wallentx, for packaging these releases! The repository automatically runs a GitHub Action every six hours that fetches the official binary and patches it using the exact methods outlined in this guide below.